package com.happyrecyclingstation.mapper;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ReportMapper {
	/**
	 * 统计用户
	 * @return
	 */
	@MapKey("name")
	List<Map<String, Integer>> getUserCount();

	/**
	 * 统计职位
	 * @return
	 */
	@MapKey("month")
	List<Map<String, Object>> getPositionCount();
}
